{include file="common/head"/}
<div class="admin-main layui-anim layui-anim-upbit" ng-app="hd" ng-controller="ctrl">
    <fieldset class="layui-elem-field layui-field-title">
        <legend></legend>
    </fieldset>
    <div class="layui-form">
        <div class="layui-form-item">
            <label class="layui-form-label">驳回理由</label>
            <div class="layui-input-4">
                <input type="hidden" name="tixian_id" value="{$id}">
                <input type="text" name="reson" ng-model="field.email" lay-verify="eamil" placeholder="输入驳回理由" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="button" class="layui-btn" lay-filter="sub" lay-submit>确认</button>
<!--                <button type="button" class="layui-btn" lay-submit="" lay-filter="submit">{:lang('submit')}</button>-->
            </div>
        </div>
    </div>
</div>
{include file="common/foot"/}

<script src="/static/plugins/layui/layui.js"></script>
<script>
    layui.use(['form', 'layer'], function () {
        var form = layui.form,$ = layui.jquery;
        // 登录提交监听
        form.on('submit(sub)', function (data) {
            var loading = layer.load(1, {shade: [0.1, '#fff']});
            $.post("{:url('bohuishenqing')}",data.field,function(res){
                layer.close(loading);
                if(res.code==1){
                    layer.msg(res.msg,{time:1000,icon:1},function(){
                        parent.location.href = "{:url('tixian')}";
                    });
                }else{
                    layer.msg(res.msg,{time:1000,icon:2});
                    // $('.captcha img').attr('src','{:url("verify")}?id='+Math.random());
                }
            });
        })
    })
</script>

</body>
</html>